package utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * @version V1.0
 * @Title:
 * @Package
 * @Description:
 * @author: GaleBlade
 * @date:
 */
public class CommonUtils {

    public static String formatJSON(String jsonString){
        JSONObject object = JSONObject.parseObject(jsonString);
        return JSON.toJSONString(object, SerializerFeature.PrettyFormat, SerializerFeature.WriteMapNullValue, SerializerFeature.WriteDateUseDateFormat);
    }

}
